/**
 * 个人首页接口
 */
import request from "../request.js";
import url from "../../url/url.js";

/**
 * 获取公告  /cmsInform/page?current=1&size=20
 */
export default {
    /**
     * 获取反馈分页 
     */
    getCmsFeedback(data) {
        return request({
            url: url.baseUrl + "/cmsFeedback/page?pageSize=" + data.pageSize + "&pageNum=" + data.pageNum,
            data: { userId: data.userId },
            method: "post"
        });
    },
    /**
     * 反馈详情 http://localhost/cmsFeedback/1
     */
    cmsFeedbackDetailed(data) {
        return request({
            url: url.baseUrl + "/cmsFeedback/" + data.id,
            method: "get"
        });
    },
    /**
     * 反馈接口 /cmsFeedback/save
     */
    cmsFeedbackSave(data) {
        return request({
            url: url.baseUrl + "/cmsFeedback/save",
            data: data,
            method: "put"
        });
    },
    /**
     * 反馈评论 
     */
    cmsUserComment(data) {
        return request({
            url: url.baseUrl + "/cmsUserComment/save",
            data: data,
            method: "put"
        });
    },
    /**
     * 删除反馈 cmsFeedback/delete
     */
    cmsFeedbackDelete(data) {
        return request({
            url: url.baseUrl + "/cmsFeedback/delete",
            data: data,
            method: "post"
        });
    }

}